package com.fausto.learnimprint.core.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author fausto
 * @since 2022-03-28
 */
@TableName("reply")
public class Reply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 回复唯一id
     */
    @TableId(value = "reply_id", type = IdType.AUTO)
    private Integer replyId;

    /**
     * 回复内容
     */
    private String replyBody;

    /**
     * 回复时间
     */

    private LocalDateTime replyTime;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 评论id
     */
    private Integer discussId;

    /**
     * 父回复节点id
     */
    private Integer replyRootId;

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public String getReplyBody() {
        return replyBody;
    }

    public void setReplyBody(String replyBody) {
        this.replyBody = replyBody;
    }

    public LocalDateTime getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(LocalDateTime replyTime) {
        this.replyTime = replyTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDiscussId() {
        return discussId;
    }

    public void setDiscussId(Integer discussId) {
        this.discussId = discussId;
    }

    public Integer getreplyRootId() {
        return replyRootId;
    }

    public void setreplyRootId(Integer replyRootId) {
        this.replyRootId = replyRootId;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "replyId=" + replyId +
                ", replyBody=" + replyBody +
                ", replyTime=" + replyTime +
                ", userId=" + userId +
                ", discussId=" + discussId +
                ", replyRootId=" + replyRootId +
                "}";
    }
}
